package com.test.protocol;

public interface Protocol {

	

	
	
	static final String DOWNLOAD_ADDRESS = System.getProperty("user.home")
			+ "\\uclickmessenger";
	static final int CLIENT_PORT = 9211;

	static final int REQ_LOGIN = 101;
	static final int RES_LOGIN_SUCCESS = 102;
	static final int RES_LOGIN_FAIL = 103;
	static final int USER_LOGIN = 104;
	static final int REQ_LOG_OUT = 105;
	static final int RES_LOG_OUT_SUCCESS = 106;
	static final int REQ_MAKE_ROOM = 201;
	static final int RES_MAKE_ROOM = 202;
	static final int GENERAL_MSG = 203;

	static final int MAX_SIZE = 1024;

	static final int SENDER = 1000;
	static final int RECEIVER = 2000;

	void setProtocolData(String entity, Object message);

	Object getContent(String key);
}
